var express = require('express')
var apiRoutes = express.Router();

var hot_search_words = require('./mockdata/hot_search_words.json');
var shops = require('./mockdata/shops.json');
var menu = require('./mockdata/menu.json');
var shop = require('./mockdata/shop.json');
var shopRateScores = require('./mockdata/shopRateScores.json');
var shopRatings = require('./mockdata/shopRatings.json');
var ratingTags = require('./mockdata/ratingTags.json');


apiRoutes.get('/hot_search_words', function (req, res) {
	res.json({errno:0,datas:hot_search_words});
});
apiRoutes.get('/shops', function (req, res) {
	res.json({errno:0,datas:shops});
});

apiRoutes.get('/shop', function (req, res) {
	res.json({errno:0,data:shop});
});
apiRoutes.get('/menu', function (req, res) {
	res.json({errno:0,datas:menu});
});
apiRoutes.get('/shopRateScores', function (req, res) {
	res.json({errno:0,data:shopRateScores});
});
apiRoutes.get('/ratingTags', function (req, res) {
	res.json({errno:0,datas:ratingTags});
});
apiRoutes.get('/shopRatings', function (req, res) {
	res.json({errno:0,datas:shopRatings});
});

module.exports = apiRoutes;
